<?php

require_once '../Database.php';
require_once '../Image.php';
require_once '../Articles.php';
	if(isset($_GET['format']) ){
		if ($_GET['format']=="json"){
			$db= new DB();
			$images= $db->takeGallery();
			var_dump($images);
			echo json_encode($images);	
		}
		
	}
?>